package com.springcloud.wujie_study_day03_eureka_feign.controller;

import com.springcloud.wujie_study_day03_eureka_feign.service.ServerFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname FeignTestController
 * @Description TODO
 * @Date 2019/5/27 14:24
 * @Created by wujie
 */
@RestController
public class FeignTestController {
    @Autowired
    private ServerFeignService serverFeignService;

     @RequestMapping(value = "testFeign")
      public String testFeign(@RequestParam String name){
         return serverFeignService.testFeign(name);
      }

}
